package com.cyxu.moviedigest.data;

import org.json.JSONArray;

import java.io.Serializable;

public class MovieInfo implements Serializable {
    private int id, year, duration;
    private double rate;
    private String title, description;
    private String genres, directors, casts;
    private String image;

    public MovieInfo() {
        id = 0;
        year = 1900;
        duration = 0;
        rate = 0;
        title = null;
        description = null;
        genres = null;
        directors = null;
        casts = null;
        image = null;
    }

    public void setId(int id){
        this.id = id;
    }

    public void setYear(int year){
        this.year = year;
    }

    public void setDuration(int duration){
        this.duration = duration;
    }

    public void setRate(double rate){
        this.rate = rate;
    }

    public void setTitle(String title){
        this.title = title;
    }

    public void setDescription(String description){
        this.description = description;
    }

    public void setGenres(JSONArray genres){
        this.genres = genres.toString();
    }

    public void setDirectors(JSONArray directors){
        this.directors = directors.toString();
    }

    public void setCasts(JSONArray casts){
        this.casts = casts.toString();
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getId(){
        return id;
    }

    public int getYear(){
        return year;
    }

    public int getDuration(){
        return duration;
    }

    public double getRate(){
        return rate;
    }

    public String getTitle(){
        return title;
    }

    public String getDescription(){
        return description;
    }

    public String getGenres(){
        return genres;
    }

    public String getDirectors(){
        return directors;
    }

    public String getCasts(){
        return casts;
    }

    public String getImage() {
        return image;
    }
}